<!DOCTYPE html>
<html>
	<head>
		<#include "/templates/commons/head.html">
		<script type="text/javascript">
			function validate() {
			    if(!$("#fileAddForm").validateForm())
					return false;
				else
				    return true
			}
			function callbackdata() {
			    var data = {
				    "fileName" : $("#dialog-fileName").val(),
				    //"permission" : $("#permission").val(),
				    "type" : $("#permission").val(),
				    "path" : $("#dialog-path").val()
			    };
			    return data;
			}
		</script>
	</head>
	<body>
		<div id="div-body" style="margin-right: 10px;">
			<div class="hid-scroller-body">
				<div class="main-container">
					<fieldset class="layui-elem-field layui-field-title">
						<legend>创建文件夹</legend>
					</fieldset>
					<form id="fileAddForm" name="fileAddForm" class="layui-form">
						<div class="layui-form-item">
							<label class="layui-form-label">目录名称</label>
							<div class="layui-input-block">
								<input type="text" id="dialog-fileName" name="fileName" isValidate="true" notEmpty="true" autocomplete="off" placeholder="请输入目录名称" class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">路径名称</label>
							<div class="layui-input-block">
								<input type="text" id="dialog-path" name="path" isValidate="true" notEmpty="true" autocomplete="off" isCharOrNum="true" placeholder="请输入路径名称(只能是英文和数字)" class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">文件夹权限</label>
							<div class="layui-input-inline">
								<select name="permission" id="permission">
									<@dict type="document_permission">
										<#list dictList as dict>
											<option value="${dict.code}">${dict.name}</option>
										</#list>
									</@dict>
								</select>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</body>
</html>